package com.lanou3g.ptp.attendance.service;


import com.github.pagehelper.PageInfo;
import com.lanou3g.ptp.entity.Attendance;

import java.util.Date;
import java.util.List;


public interface AttendanceService {
//    添加签到信息
    void addAttentInfor(Attendance attendance);
//    通过学生
    List<Attendance> findByStudentId(long  studentId);
//    分页
    PageInfo<Attendance> findAll(Integer page, Integer size);
//    通过id，开始时间和结束时间差打卡条数
    List<List<Date>> findByAttentTime(Long studentId, Long taskId,Date startTime, Date endTime);

    List<Attendance> findAll1();

    void updateByStudentId( long studentId,Attendance attendance);
    List<Attendance> findByStudentIdAndDate(long studentId, Date startDate, Date overDate);
    void deleteByStudentId(long studentId);

    List<Attendance> findSignTime(long studentId,String signTime);

    List<Attendance> findStudentTask(long studentId,long taskId);
    List<Attendance> findByTaskId(long taskId);
    Integer findByDate(Long studentId, Date startDate, Date endDate);
    List<Attendance> findByDateId(Date startDate,Date endDate);

}
